package cn.dengta.webapp.trade.entity.meta;

import cn.dengta.webapp.trade.entity.meta.MetaConfig.MetaRuleConfig;
import lombok.Getter;
import lombok.Setter;

/**
 *
 */
@Getter
@Setter
public class MediaRule implements MetaRuleConfig {

	/** 是否打开录制用户lvl视频 */
	public Integer videoArchiveOpen = 0;

	/** 是否打开录制用户lvl音频 */
	public Integer audioArchiveOpen = 0;

	@Override
	public void validate() {

	}

	@Override
	public void init(MetaConfig.MetaRuleConfig config) {
		MediaRule rule = (MediaRule) config;
		this.videoArchiveOpen = rule.videoArchiveOpen;
		this.audioArchiveOpen = rule.audioArchiveOpen;
	}

}
